package com.zygh.policeasset.service;

import com.zygh.policeasset.mapper.ReviewCommentsMapper;
import com.zygh.policeasset.pojo.ReviewComments;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReviewCommentsService {

    @Autowired
    ReviewCommentsMapper reviewCommentsMapper;

    public List<ReviewComments> findAll() {
        return reviewCommentsMapper.findAll();
    }

    public Integer add(ReviewComments reviewComments) {
        return reviewCommentsMapper.add(reviewComments);
    }

    public Integer update(ReviewComments reviewComments) {
        return reviewCommentsMapper.update(reviewComments);
    }

    public Integer delete(Integer id) {
        return reviewCommentsMapper.delete(id);
    }
}